// 类外堆内存的申请与释放 
#include <iostream>
using namespace std;

class  A
{
    char *p;
public:
    A(){p = new char[100];}
    ~A(){delete [] p;}
};

void f()
{
    A a;
}

int main(int argc, char const *argv[])
{
    f();
    return 0;
}
